package com.sxit.myproscenium.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wcn
 * @since 2022-04-10
 */
@TableName("sys_address")
@Schema(name = "Address对象", description = "")
public class Address implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "配送编号")
  @TableId(value = "address_id", type = IdType.AUTO)
  private Long addressId;

  @Schema(description = "用户编号")
  private Long ownerId;

  @Schema(description = "详细地址")
  private String detailedAddress;

  @Schema(description = "电话")
  private String phone;

  @Schema(description = "标签 1学校2 家 3 公司 4 其他")
  private String tag;

  @Schema(description = "收货人姓名")
  private String consigneeName;

  @Schema(description = "创建时间")
  private LocalDateTime createTime;

  public Long getAddressId() {
    return addressId;
  }

  public void setAddressId(Long addressId) {
    this.addressId = addressId;
  }

  public Long getOwnerId() {
    return ownerId;
  }

  public void setOwnerId(Long ownerId) {
    this.ownerId = ownerId;
  }

  public String getDetailedAddress() {
    return detailedAddress;
  }

  public void setDetailedAddress(String detailedAddress) {
    this.detailedAddress = detailedAddress;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getTag() {
    return tag;
  }

  public void setTag(String tag) {
    this.tag = tag;
  }

  public String getConsigneeName() {
    return consigneeName;
  }

  public void setConsigneeName(String consigneeName) {
    this.consigneeName = consigneeName;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  @Override
  public String toString() {
    return "Address{"
        + "addressId="
        + addressId
        + ", ownerId="
        + ownerId
        + ", detailedAddress="
        + detailedAddress
        + ", phone="
        + phone
        + ", tag="
        + tag
        + ", consigneeName="
        + consigneeName
        + ", createTime="
        + createTime
        + "}";
  }
}
